package com.sky.mapper.user;

import com.sky.pojo.Dish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserDishMapper {
    @Select("select * from dish where  category_id=#{categoryId} and status=#{status}")
    List<Dish> list(long categoryId, Integer status);
//    @Select("select count(*) from dish where category_id=#{categoryId};")
//    Integer count(long categoryId);
}
